package com.jing.weibo.mapper.user;

import java.util.List;

import com.jing.weibo.pojo.Synchrolog;

/**
 * 用户同步记录的Mapper
 * @author jing.yue
 * @version 2012/08/30 1.0.0
 */
public interface SynchrologMapper {

	/**
	 * 根据用户名和用户同步的表名[或和时间]查询用户对象
	 * @param synchrolog
	 * @return
	 * @throws Exception
	 */
	public abstract List<Synchrolog> findByUserNameSynchrotable(Synchrolog synchrolog) throws Exception;

	/**
	 * 添加用户同步记录
	 * @param synchrolog
	 * @throws Exception
	 */
	public abstract void saveSynchrolog(Synchrolog synchrolog) throws Exception;

	/**
	 * 根据用户名和同步的表名修改用户同步记录信息
	 * @param synchrolog
	 * @throws Exception
	 */
	public abstract void updateSynchrolog(Synchrolog synchrolog) throws Exception;

	/**
	 * 根据用户名和类型删除记录
	 * @param sl
	 * @throws Exception
	 */
	public abstract void deleteSynchrolog(Synchrolog sl) throws Exception;
}